package com.common.controller;

/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:16/8/6
 */

public enum ResultCode {
    SUCCESS(0, "成功"),
    EXCEPTION(1, "发生异常"),

    NOT_LOGIN(101, "用户未登录"),
    PARAMS_ERROR(102, "参数错误"),
    NOT_SUPPORTED(103, "方法不支持"),
    TOKEN_INVALID(104, "令牌验证错误"),
    ERROR_USERNAME_PASSWORD(105, "用户名或者密码错误");



    private int code;
    private String msg;

    ResultCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
